package com.tzy.rpc.loadbalancer;/**
 * @description:
 * @Author HP
 * @create 2022/3/18 20:38
 */

import com.alibaba.nacos.api.naming.pojo.Instance;

import java.util.List;

/**
 * @author HP
 * @create 2022-03-18 20:38
 * @desc 负载均衡接口
 **/
public interface LoadBalancer {
    /**
     *从一系列Instance中选择一个
     */
    Instance select(List<Instance> instances);

}
